package com.imjohn.service;

import com.imjohn.entity.Teacher;
import com.imjohn.mapper.TeacherMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TeacherService {
    @Autowired
    TeacherMapper teacherMapper;
    public Teacher getTeacherById ( int id) {
        Teacher teacher = teacherMapper.getTeacherById(id);
        return teacher;
    }

}
